<style type="text/css">
    .nickname{
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }
</style>
<?php use frontend\models\User; ?>
        <!--个人中心-->
    <div class="container">
     <div class="row">
       <div class="user_header">
         <div class="user_img">
          <div class="my_img">
            <img src="<?= u()->face ?>">
          </div>
          <div class="user_text">
              <p class="nickname"><?= u()->nickname ?></p>
              <p><?= u()->mobile  ?></p>
          </div>
         </div>
         <div class="user_ewm">
          <a style="margin-top:10px;" data-url="<?= url(['manager/index']) ?>" class="overallPsd">
          <i class="iconfont user_item">&#xf0030;</i>
          <p style="display: inline" class="font_12">经纪人</p>
          </a>
         </div>
         <div class="user_set">
           <a style="margin-top:10px;" data-url="<?= url(['user/password']) ?>" class="overallPsd">
            <i class="iconfont user_item">&#xe601;</i>
            <p style="display:inline"  class="font_12">改密码</p>
           </a> 
         </div>
       </div>
     </div>
     <div  class="row user_self">
         <div class="self-main">
            <i class="iconfont cor_y" style="float:left;margin-left:32px;color:#E8B400;margin-top:9px;">&#xe62c;</i>
            <div class="balance balance1">
                <p style="margin-top:7px;">账户余额</p>
                <b><?= u()->account - u()->blocked_account ?></b>
            </div>
            <div class="btn-box">
                <a data-url="<?= url(['user/recharge']) ?>" class="recharge overallPsd">充值</a>
                <a data-url="<?= url(['user/withDraw']) ?>" class="cash overallPsd">提现</a>
            </div>
         </div>
     </div>
     <div class="flex-nowrap jinriyingkui row">
         <p>今日盈亏(元)<span <?php if($orderProfit < 0){echo "style='color:#01b95a'";} ?>><?= $orderProfit ?$orderProfit:0?></span></p>
         <p>今日交易次数<span><?= $orders ?></span></p>
     </div>
<!--     <a href="<?= url(['user/experience']) ?>">
         <div class="row user_self">
             <div class="self-main">
                <i class="iconfont cor_y" style="float:left;margin-left:32px;color:#E8B400;">&#xe607;</i>                    
                    <div class="balance">
                        <p class="mar_t8 font_14">我的代金券</p>
                    </div>                  
             </div>
         </div>
    </a> -->   
    <a href="<?= url(['user/transDetail']) ?>">
         <div class="row user_self">           
             <div class="self-main">
                <i class="iconfont cor_y" style="float:left;margin-left:32px;color:#E8B400;">&#xe62b;</i>                       
                    <div class="balance">
                        <p class="mar_t8 font_14">交易记录</p>
                    </div>            
             </div>            
         </div>
    </a>    
    <a href="<?= url(['user/myBill']) ?>">
         <div class="row user_self">
             <div class="self-main">
                <i class="iconfont cor_y" style="float:left;margin-left:32px;color:#E8B400;">&#xe74c;</i>                    
                    <div class="balance">
                        <p class="mar_t8 font_14">我的账单</p>
                    </div>                   
             </div>
         </div>
    </a>
    <a href="<?= url(['user/outMoney']) ?>">
         <div class="row user_self">
             <div class="self-main">
                <i class="iconfont cor_y" style="float:left;margin-left:32px;color:#E8B400;">&#xe6dc;</i>                    
                    <div class="balance">
                        <p class="mar_t8 font_14">出金记录</p>
                    </div>                   
             </div>
         </div>
    </a>
        <a href="<?= url(['site/logout']) ?>">
         <div class="row user_self">
             <div class="self-main">
                <i class="iconfont cor_y" style="float:left;margin-left:32px;color:#E8B400;">&#xe665;</i>                    
                    <div class="balance">
                        <p class="mar_t8 font_14">退出登录</p>
                    </div>                   
             </div>
         </div>
    </a>
<!--     <a data-url="<?= url(['manager/index']) ?>" class="overallPsd">
         <div class="row user_self">
             <div class="self-main" >
                <i class="iconfont cor_y" style="float:left;">&#xe665;</i>
                    <div class="balance">
                        <p class="mar_t8 font_14">经纪人</p>
                    </div>
             </div>
         </div>
    </a> -->
   </div>
     <!--中间内容-->
        <!-- 模态框（Modal） --> 
        <div class="modal fade bg_rgba" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 
            <div class="modal-dialog"> 
                <div class="share-box"> 
                    <img src="/images/tc.png"> 
                </div><!-- /.modal-content --> 
            </div><!-- /.modal --> 
        </div>  
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>


